<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/piaoyi.tld" prefix="piaoyi"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>【西安演唱会|西安演唱会门票|西安音乐会门票】-票易网</title>
<meta name="description" content="票易网是西安本地最大的西安演唱会、西安音乐会门票转让交易，预定信息的平台，汇集了大量西安演唱会、西安音乐会门票转让 预订信息供您选择，同时您也可以在这里查询西安演唱会、西安音乐会门票转让和预定信息。" />
<meta name="keywords" content="西安演唱会,西安演唱会门票,西安音乐会门票" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/user.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="css/changejs.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.pngFix.pack.js"></script>
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/jquery.lazyload.js"></script>
<script type="text/javascript" src="js/foucs.js"></script>
<script type="text/javascript">
	$("img").seeIt(function(){$(this).attr("src" , $(this).attr("original"));}, {nearby : 200});
	var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0578294a14fae8ac90f4609ae2844eda' type='text/javascript'%3E%3C/script%3E"));

	$(function(){
		var $zscrtime;
		$zscrtime = setInterval(function(){
			var $leng = $('ul#xxk img[original1!="true"]');
			$leng.each(function(i,o){
				var self = $(o);
				if(self.attr("original1")!="true"){
					self.attr("src", self.attr("original1"));
					self.attr("original1","true");
				}
				if(i>2) return false;
			});
		   if($leng.length==0) clearInterval($zscrtime);
			
		},5000);
	});
	
var city=new Array();
<s:iterator id="c" value="%{citys}">
city[city.length]=new Array(<s:property value="#c.provinceId" escape="false"/>,<s:property value="#c.id" escape="false"/>,'<s:property value="#c.name" escape="false"/>');
</s:iterator>
function onprovince(provinceId){
   $('#city').empty();
   for(i=0;i<city.length;i++){
   	if(provinceId == city[i][0]){
   		$('#city').append("<option value='"+city[i][1]+"'>"+city[i][2]+"</option>");
   		//$('#city').options.add(new Option(city[i][2],city[i][1])); 
   	}
   }
}	
function onshipping(amount){
   var goodsAmount = $('#goodsAmount').html();
   if(parseInt(amount)==0){
   		$("#shippingAmount").html("0");
   		$("#orderAmount").html(goodsAmount);
   }else{
   	    $("#shippingAmount").html(amount);
   		$("#orderAmount").html(parseInt(goodsAmount)+parseInt(amount));
   }
}
</script>
</head>
<body>
<div class="wrap">

	<div class="list_header">
    	<div class="top"><s:include value="/top.jsp" /></div>
	</div>
    <div class="list_main">

    	<div class="gwc_content">
       
   <dl>
   
             <div class="gwc_t">
              <ul>
                  <li class="gwc_t1">1.查看购物车</li>
                  <li class="gwc_select">2.确认订单信息</li>
                  <li class="gwc_t1">3.成功提交订单信息</li>
              </ul>
             </div>
 <s:form id="ordersure" action="order_sure">
 <s:hidden name="action" value="doorder"/>            
             <div class="gwc_2">
             <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr class="user_shop">
                                  <td height="32" colspan="2" align="left"><strong>确认收货人信息</strong></td>
                                </tr>

                                <tr class="user_name">
                                 <td width="14%" height="50" align="left"><span class="tr">所在地区：</span></td>
                                  <TD width="86%" style="PADDING-LEFT: 8px">
                                  	 省:<s:select list="provinceList" name="province" id="province" listKey="key" listValue="value" onchange="onprovince(this.value);" cssStyle="width:100px"></s:select>
                                   	 市:<s:select list="cityList" name="city" id="city" listKey="key" listValue="value" cssStyle="width:150px"></s:select>
                                          区:<s:textfield name="district" id="district" cssClass="validatefield"/>
                                  </TD>
                                </tr>
                                <tr class="user_name">
                                 <td width="14%" height="50" align="left"><span class="tr">取货方式：</span></td>
                                  <TD width="86%" style="PADDING-LEFT: 8px">
                                     <s:select list="shippingList" name="shippingAmount" listKey="key" listValue="value" onchange="onshipping(this.value);"></s:select>
                                  </TD>
                                </tr>
                                <tr class="user_name">
                    <td height="50" align="left"><span class="tr" style="PADDING-TOP: 8px">街道地址：</span></td>
                    <td class="peop-tab1" style="PADDING-LEFT: 8px"><span class="pr30">
                    <s:textfield name="address" id="address" cssClass="inpcls validatefield"/>
                      </span><span>邮政编码：
                      <s:textfield name="zipcode" id="zipcode" cssClass="validatefield"/>
                      </span></td>
                  </tr>
                                 <tr class="user_name">
                                   <td height="50" align="left"><span class="tr" style="PADDING-TOP: 8px">收货人姓名：</span></td>
                                   <td class="peop-tab1" style="PADDING-LEFT: 8px"><span class="pr30">
                                   <s:textfield name="consignee" id="consignee" cssClass="inpcls validatefield"/>
                                   </span><span class="menpiao">请填写真实姓名</span></td>
                                 </tr>
                                 <tr class="user_name">
                                   <td height="50" align="left"><span class="tr" style="PADDING-TOP: 8px">手机号码：</span></td>
                                   <td class="peop-tab1" style="PADDING-LEFT: 8px"><span class="pr30">
                                     <s:textfield name="mobile" id="mobile" cssClass="inpcls validatefield"/>
                                   </span><span class="menpiao">请填写真实的手机号，以便永乐客服及时与您联系，或挂失电子票时使用</span></td>
                                 </tr>
             </table>
        </div>
              <div class="gwc_2">
                <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr class="user_shop">
                    <td width="45%" align="left"><strong>确认购买信息</strong></td>
                    <td width="12%" height="32" align="left">票价</td>
                    <td width="11%" align="left">数量</td>
                    <td width="13%" align="left">小计</td>
                  </tr>
                  <s:iterator id="c" value="%{carts}" >
                  <tr class="user_name">
                    <td align="left"><s:property value="#c.goods.name"/><br />
                      <span class="user_time1">时间: 
                      <s:if test="#c.daily.limitTime==0">
			      	    不限时间
			          </s:if>
			          <s:else>
			      	    <piaoyi:dailyTime value="#c.daily"/>
			          </s:else>
                      </span></td>
                    <td align="left"><s:property value="#c.price.price"/></td>
                    <td align="left"><s:property value="#c.goodsNumber"/></td>
                    <td align="left"><s:property value="#c.totalPrice"/></td>
                  </tr>
                  </s:iterator>
                </table>
</div>                
				
				<s:hidden name="goodsAmount"/>
                 <div class="gwc_2"><span class="gwc_r"> 应付款：商品 <FONT class="bl" id="goodsAmount"><s:property value="goodsAmount"/></FONT>元 + 运费 <FONT class="bl" id="shippingAmount">0</FONT>元 = <FONT class="bl" id="orderAmount"><s:property value="goodsAmount"/></FONT>元 </span>
                </div>
                 <div class="gwc_2"><span class="gwc_r"><input type="image" src="images/g_4.jpg" border="0"  /></span></div>
                 <div class="gwc_2"></div>
                 </s:form>
   </dl>
        </div>
    
  </div>

    
    <div class="footer">
      <s:include value="/foot.jsp" />
    </div>
</div>
</body>
</html>
